import React from 'react';
import { WeaSearchGroup } from 'ecCom';
import { Icon,Tooltip } from 'antd';

export default class ViewSort extends React.Component{
  constructor(props){
    super(props)
  }
  //title-标题  className  style  
  render(){
    const {title,className,style,datatitle} = this.props;
    return(
       <div className={"wea-workrelate-viewsort "+(className?className:"")} style={style}>
         <WeaSearchGroup ecId={`${this && this.props && this.props.ecId || ''}_WeaSearchGroup@j6wevb`} title={<Tooltip ecId={`${this && this.props && this.props.ecId || ''}_Tooltip@s4p3v6`} title={datatitle?datatitle:""}>{title}</Tooltip>} showGroup={true}>
            {this.props.children}
         </WeaSearchGroup>
       </div>
    )
  }
}